package cn.buk.api.shdl.dto;

import com.fasterxml.jackson.annotation.JsonAlias;

import java.util.List;

public class PassengerInfo {

  private PassengerPriceInfo price;

  /**
   * 旅客类型
   * ADT - 成人
   */
  private String ptc;

  /**
   * 是否提供了身份
   * ID
   */
  private boolean idRequired;

  /**
   * 每种旅客类型对应的运价信息
   * 该数组中的元素顺序跟该
   * ticket 下的fares 数组中的顺序
   * 一致
   */
  @JsonAlias("fareInfo")
  private List<PassengerFareInfo> fareInfoList;

  /**
   * 运价计算横式
   */
  private String fareline;



  public PassengerPriceInfo getPrice() {
    return price;
  }

  public void setPrice(PassengerPriceInfo price) {
    this.price = price;
  }

  public String getPtc() {
    return ptc;
  }

  public void setPtc(String ptc) {
    this.ptc = ptc;
  }

  public boolean isIdRequired() {
    return idRequired;
  }

  public void setIdRequired(boolean idRequired) {
    this.idRequired = idRequired;
  }

  public List<PassengerFareInfo> getFareInfoList() {
    return fareInfoList;
  }

  public void setFareInfoList(List<PassengerFareInfo> fareInfoList) {
    this.fareInfoList = fareInfoList;
  }

  public String getFareline() {
    return fareline;
  }

  public void setFareline(String fareline) {
    this.fareline = fareline;
  }
}
